var i = 1;
var content = "data:text/plain;charset=utf-8,";
while (
    i <=
    document.getElementsByClassName("page-count")[0].textContent.substring(1)
) {
    content += document.getElementById("pageNo-" + i).textContent;
    i++;
}
// var elementDown = document.createElement("a");
// elementDown.setAttribute("href", content);
// elementDown.setAttribute("download", "downloadWord.docx");
// elementDown.style.display = "none";
// document.body.appendChild(elementDown);
// elementDown.click();
// document.body.removeChild(elementDown);

// 若是阅读付费文档，请将document.getElementsByClassName(“page-count”)[0].textContent.substring(1)这句替换为你能阅读到的页数，否则会报错。

content = document.getElementById("pageNo-" + i).textContent;
//获取一段文本
